
#drafted by Lauren Hodgson ( lhodgson86@gmail.com ...  )
#GNU General Public License .. feel free to use / distribute ... no warranties

#use for changing ascii to mxe or vice versa
#note: must run interactively
################################################################################
#module load R #for use at UQ
library(SDMTools) #load your libraries

ascdir='/home/ctbccr/Ramona/MoreSubstr/new/' #define your ascii directory
mxedir='/home/ctbccr/Ramona/MoreSubstr/mxe/';dir.create(mxedir) #define and create your mxe directory

cat(paste('java -mx1024m -cp /home/ctbccr/Ramona/SDM/Amphibians/maxent.jar density.Convert ',ascdir,' asc ',mxedir,' mxe',sep='')) #paste your java script together and print it to screen
#copy the script printed to the screen
q() #exit R
###############################
#exit R
module load java
	
java -mx1024m -cp /home/ctbccr/Ramona/SDM/Amphibians/maxent.jar density.Convert /home/ctbccr/Ramona/Substropo_data/new/ asc /home/ctbccr/Ramona/Substropo_data/mxe/ mxe